import os

class Config:
    # 数据库连接URI
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123456@localhost:4000/movie_ticket_system'
    # 密钥
    SECRET_KEY = os.getenv('SECRET_KEY', 'supersecretkey')
    # 是否跟踪修改
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_ENGINE_OPTIONS = {'pool_recycle': 280}  # 添加连接池选项